package com.shiguiwu.springmybatis.spring.property;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @description: db配置
 * @author: stone
 * @date: Created by 2021/4/3 19:40
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.property
 */
@Component
@PropertySource("classpath:spring/db.properties")
@Data
public class DbConfig {

    @Value("${jdbc.username:shiguiwu}")
    private String username;

    @Value("${jdbc.password:1234}")
    private String password;

    @Value("${jdbc.url:www.baidu.com}")
    private String url;

    @Value("${jdbc.driver:com.mysql.driver}")
    private String driver;





}
